package com.bed.lovewithpatientbed.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName OrderDetailBean.java
 * @Description 订单管理显示内容封装
 */
public class OrderDetailBean {

    /**
     * 订单编号
     */
    private Integer orderId;

    /**
     * 所属医院
     */
    private String hospitalName;

    /**
     * 所属科室
     */
    private String deptName;

    /**
     * 床位Id
     */
    private Integer bedId;

    /**
     * 实际支付金额
     */
    private BigDecimal orderPay;

    /**
     * 手机号
     */
    private String userPhone;

    /**
     * 租赁时长
     */
    private Integer orderUseTime;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date orderStartTime;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getBedId() {
        return bedId;
    }

    public void setBedId(Integer bedId) {
        this.bedId = bedId;
    }

    public BigDecimal getOrderPay() {
        return orderPay;
    }

    public void setOrderPay(BigDecimal orderPay) {
        this.orderPay = orderPay;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getOrderUseTime() {
        return orderUseTime;
    }

    public void setOrderUseTime(Integer orderUseTime) {
        this.orderUseTime = orderUseTime;
    }

    public Date getOrderStartTime() {
        return orderStartTime;
    }

    public void setOrderStartTime(Date orderStartTime) {
        this.orderStartTime = orderStartTime;
    }

    @Override
    public String toString() {
        return "OrderDetailBean{" +
                "orderId=" + orderId +
                ", hospitalName='" + hospitalName + '\'' +
                ", deptName='" + deptName + '\'' +
                ", bedId=" + bedId +
                ", orderPay=" + orderPay +
                ", userPhone='" + userPhone + '\'' +
                ", orderUseTime=" + orderUseTime +
                ", orderStartTime=" + orderStartTime +
                '}';
    }
}
